import React from 'react';
import { connect } from 'react-redux';
import BaseComponent from '../../components/common/baseComponent.js';
import errIcon from '../../../assets/images/icon/err_guangxi.png';
import { getQueryParam } from '../../utils/url';

@connect()
class Exception extends BaseComponent {
  state = {
    msg: getQueryParam('msg') || '网络开小差 请稍后重试',
  }

  render() {
    const { msg } = this.state;
    return (
      <div className="error-page">
        <img src={errIcon} className="icon" alt="" />
        <div className="title">{msg}</div>
      </div>
    );
  }
}

export default Exception;

